package c99其他情况;

class C {
	synchronized void hit(long l) {
		for (int i = 1; i < 3; i++) {
			System.err.print(l + "-" + i + " ");
		}
	}
}

public class CVTEtest implements Runnable {
	static C c = new C();

	public static void main(String[] args) {
		new Thread(new CVTEtest()).start();
		new Thread(new CVTEtest()).start();
	}

	@Override
	public void run() {
		c.hit(Thread.currentThread().getId());
	}
}
